package com.tianzj.mvc.act.controller;

import java.util.List;

import javax.servlet.http.HttpServletRequest;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import org.springframework.web.servlet.ModelAndView;

import com.tianzj.mvc.act.pojo.Act;
import com.tianzj.mvc.act.service.ActTaskService;


@RestController
@RequestMapping("/actTask")
public class ActTaskController {

	@Autowired
	private ActTaskService actTaskService;
	
	@RequestMapping("getTodoList")
	public ModelAndView getTodoList(HttpServletRequest request){
		List<Act> actList = actTaskService.getTodoList();
		request.setAttribute("actList",actList);
		return new ModelAndView("act/todoList");
	}
}
